/**
 * @description: 记录相关接口
 * @param {*}
 * @return {*}
 * @date: 2023-11-21
 * @update: 2023-11-21
 */

import request from '@/utils/request'

// 查询农事记录列表
export function listRecord(query) {
  return request({
    url: '/system/qcyAgrRecord',
    method: 'get',
    params: query
  })
}

// 农事记录修改
export function updateRecord(data) {
  return request({
    url: '/system/qcyAgrRecord',
    method: 'put',
    data: data
  })
}

// 农事记录删除
export function delRecord(params) {
  return request({
    url: '/system/qcyAgrRecord/deleteDataById',
    method: 'delete',
    params: params
  })
}

// 农事记录新增
export function addRecord(data) {
  return request({
    url: '/system/qcyAgrRecord',
    method: 'post',
    data: data
  })
}
export function insertAll(data) {
  return request({
    url: '/system/qcyAgrRecord/insertAll',
    method: 'post',
    data: data
  })
}
// 农事记录统计
export function countRecord(query) {
  return request({
    url: '/system/qcyAgrRecord/countTop',
    method: 'get',
    params: query
  })
}

/**
 * 周年历程
 * @description: 周年历程相关接口
 * @param {*}
 * @return {*}
 * @date: 2023-11-21
 */

// 查询周年历程列表
export function listCourse(query) {
  return request({
    url: '/qcyAnniversary',
    method: 'get',
    params: query
  })
}

//  周年历程修改
export function updateCourse(data) {
  return request({
    url: '/qcyAnniversary',
    method: 'put',
    data: data
  })
}

// 周年历程删除
export function delCourse(params) {
  return request({
    url: '/qcyAnniversary/deleteById',
    method: 'delete',
    params: params
  })
}

// 周年历程新增
export function addCourse(data) {
  return request({
    url: '/qcyAnniversary',
    method: 'post',
    data: data
  })
}


